package kevin.framework.basic.service.impl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import kevin.framework.basic.dao.IBaseDao;
import kevin.framework.basic.service.impl.BaseService;
import kevin.framework.basic.dao.IUserDao;
import kevin.framework.basic.domain.User;

import kevin.framework.basic.service.IUserService;

/**
*Generate by Kevin's CodeBuilder
**/
@Service
public class UserService extends BaseService<User, String> implements IUserService {

		private static final long serialVersionUID = -1L;

		private  IUserDao userDao;

		@Resource(name="userDao")
		@Override
		public void setDao(IBaseDao<User, String> dao) {
				this.dao = dao;
				userDao = (IUserDao)dao;
		}

		@Override
		public void insertSuperAdmin(String name, String zhName, String pwd) throws Exception {
			userDao.insertSuperAdmin(name, zhName, pwd);
		}
		
}
